package com.xiaoshuidi.cloud.module.rooms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_equipment_repair")
public class RoomEquipmentRepair extends TenantBaseDO implements Serializable {
    private static final long serialVersionUID = -4529454577013982734L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "资产id")
    private Long equipmentId;

    @Schema(description = "维修资产名称")
    private String name;

    @Schema(description = "报修人ID")
    private Long applicantId;

    @Schema(description = "报修人")
    private String applicantName;

    @Schema(description = "报修原因")
    private String repairReason;

    @Schema(description = "维修费用")
    private BigDecimal repairCost;

    @Schema(description = "报修人电话")
    private String phone;

    @Schema(description = "服务内容")
    private String serviceContent;

    @Schema(description = "服务开始时间")
    private LocalDateTime beginDate;

    @Schema(description = "服务开始时间")
    private LocalDateTime endDate;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态")
    private String status;
}
